package com.chengjj.kings.core.util;

import com.chengjj.kings.config.properties.KingsProperties;

/**
 * @Author: 成俊杰
 * @CreateDate: 2019/3/12
 * @Version: 1.0
 * @Description: 验证码工具类
 */
public class KaptchaUtil {
    /**
     * 获取验证码开关
     * @return
     */
    public static Boolean getKaptchaOnOff() {
        return SpringContextHolder.getBean(KingsProperties.class).getKaptchaOpen();
    }
}
